<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>

<style type="text/css">
body {
    //background: url("image/defaultPattern.jpg");
    background-color: #111111;
    color: #EEEEEE;
}
.clear {
    clear: both;
}
</style>

<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js/photo.js"></script>

<script type="text/javascript"> 
    function getPhotoListUrl() {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.PhotoListActionBean" event="list"/>';
    }

    function getShowPhotoUrl(photoId) {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.PhotoListActionBean" event="showPhoto"/>&photo=' + photoId;
    }

    function getShowThumbnailUrl(photoId) {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.PhotoListActionBean" event="showThumbnail"/>&photo=' + photoId;
    }
    
    function getShowSlideshowUrl(photoId) {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.PhotoListActionBean" event="showSlideshow"/>&photo=' + photoId;
    }

    function getPhotoAdminUrl() {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.PhotoActionBean"/>';
    }

    function getDeleteAllPhotosUrl() {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.PhotoActionBean" event="deleteAll"/>';
    }

    function getDeleteAllFoldersUrl() {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.FolderActionBean" event="deleteAll"/>';
    }

    function getFolderAdminUrl() {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.FolderActionBean"/>';
    }
    
    function getFolderListUrl() {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.FolderListActionBean" event="list"/>';
    }

    function getFindPhotosByFolderUrl(folder) {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.PhotoListActionBean" event="findByFolder"/>&folder=' + folder;
    }

    function getShowFolderUrl(folder) {
        return '<stripes:url beanclass="trungsi.gea.photos.controller.FolderListActionBean" event="show"/>&folder=' + folder;
    }
</script>
